package com.ruoyi.video.service.impl;

import com.ruoyi.video.domain.BusCarouselInfo;
import com.ruoyi.video.mapper.CarouselInfoMapper;
import com.ruoyi.video.service.ICarouselInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselInfoServiceImpl implements ICarouselInfoService {

    @Autowired
    private CarouselInfoMapper carouselInfoMapper;

    @Override
    public BusCarouselInfo selectCarouselById(Long carouselId) {
        return carouselInfoMapper.selectCarouselById(carouselId);
    }

    @Override
    public List<BusCarouselInfo> selectCarouselList() {
        return carouselInfoMapper.selectCarouselList();
    }

    @Override
    public int insertCarousel(BusCarouselInfo carouselInfo) {
        return carouselInfoMapper.insertCarousel(carouselInfo);
    }

    @Override
    public int deleteCarouselById(Long carouselId) {
        return carouselInfoMapper.deleteCarouselById(carouselId);
    }

}
